<?php
/*
	
*/
defined('BY_JYA') or exit('Access Denied');
global $_RQ,$_AR;

$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
$return=array();
$basic=$this->plugin_setting('basic');
$return['banner']=$basic['image'];
$return['basic']=$basic;
//我的关注
if($_RQ['op']=='main'){
	$list=pdo_getall('jy_quan_userlog',array('uniacid'=>$_SESSION['uniacid'],'isfollow'=>1,'mid'=>$_SESSION['uid']),'','createtime desc');
	if($list){
		foreach($list as &$item){
			$item['member']=pdo_get('core_members',array('id'=>$item['userid'],'uniacid'=>$_SESSION['uniacid']),array('credit1','credit2','mobile','groupid','avatar','nickname'));
			$item['user']=pdo_get('jy_quan_member',array('mid'=>$item['userid'],'uniacid'=>$_SESSION['uniacid']));
		}
	}
	
	$return['list']=$list;
	exi($return);

}
//我的粉丝
if($_RQ['op']=='fans'){
	
	$list=pdo_getall('jy_quan_userlog',array('uniacid'=>$_SESSION['uniacid'],'isfollow'=>1,'userid'=>$_SESSION['uid']),'','createtime desc');
	if($list){
		$item['member']=pdo_get('core_members',array('id'=>$item['mid'],'uniacid'=>$_SESSION['uniacid']),array('credit1','credit2','mobile','groupid','avatar','nickname'));
		$item['user']=pdo_get('jy_quan_member',array('mid'=>$item['mid'],'uniacid'=>$_SESSION['uniacid']));
	}
	$return['list']=$list;
	exi($return);

}